package com.ruoyi.huoyun.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.huoyun.business.mapper.SupplyOfGoodsInfoMapper;
import com.ruoyi.huoyun.business.domain.SupplyOfGoodsInfo;
import com.ruoyi.huoyun.business.service.ISupplyOfGoodsInfoService;

/**
 * 货源信息Service业务层处理
 * 
 * @author mj
 * @date 2021-11-29
 */
@Service
public class SupplyOfGoodsInfoServiceImpl implements ISupplyOfGoodsInfoService 
{
    @Autowired
    private SupplyOfGoodsInfoMapper supplyOfGoodsInfoMapper;

    /**
     * 查询货源信息
     * 
     * @param id 货源信息主键
     * @return 货源信息
     */
    @Override
    public SupplyOfGoodsInfo selectSupplyOfGoodsInfoById(Long id)
    {
        return supplyOfGoodsInfoMapper.selectSupplyOfGoodsInfoById(id);
    }

    /**
     * 查询货源信息列表
     * 
     * @param supplyOfGoodsInfo 货源信息
     * @return 货源信息
     */
    @Override
    public List<SupplyOfGoodsInfo> selectSupplyOfGoodsInfoList(SupplyOfGoodsInfo supplyOfGoodsInfo)
    {
        return supplyOfGoodsInfoMapper.selectSupplyOfGoodsInfoList(supplyOfGoodsInfo);
    }

    /**
     * 新增货源信息
     * 
     * @param supplyOfGoodsInfo 货源信息
     * @return 结果
     */
    @Override
    public int insertSupplyOfGoodsInfo(SupplyOfGoodsInfo supplyOfGoodsInfo)
    {
        return supplyOfGoodsInfoMapper.insertSupplyOfGoodsInfo(supplyOfGoodsInfo);
    }

    /**
     * 修改货源信息
     * 
     * @param supplyOfGoodsInfo 货源信息
     * @return 结果
     */
    @Override
    public int updateSupplyOfGoodsInfo(SupplyOfGoodsInfo supplyOfGoodsInfo)
    {
        return supplyOfGoodsInfoMapper.updateSupplyOfGoodsInfo(supplyOfGoodsInfo);
    }

    /**
     * 批量删除货源信息
     * 
     * @param ids 需要删除的货源信息主键
     * @return 结果
     */
    @Override
    public int deleteSupplyOfGoodsInfoByIds(Long[] ids)
    {
        return supplyOfGoodsInfoMapper.deleteSupplyOfGoodsInfoByIds(ids);
    }

    /**
     * 删除货源信息信息
     * 
     * @param id 货源信息主键
     * @return 结果
     */
    @Override
    public int deleteSupplyOfGoodsInfoById(Long id)
    {
        return supplyOfGoodsInfoMapper.deleteSupplyOfGoodsInfoById(id);
    }
}
